<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:s="http://jboss.com/products/seam/taglib"
  template="/WEB-INF/templates/template.xhtml"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:rich="http://richfaces.org/rich">
  
  <ui:define name="head">
  </ui:define>
<ui:define name="body">
 </ui:define>    
<ui:define name="editUser">
   <center >
   <div class ="divabm">
   <h:outputText value="Stamping - Pasadas"  styleClass="tituloabm"/>
	<br />
	<br />
	<h:form  id="saveperfilform">
	   	
	   	<rich:dataTable value="#{abmtampingMOPasadasCtrl.stampings}" var="s" styleClass="richDataTable">
			<rich:column styleClass="resultadoBusqueda" >
			<h:panelGrid columns="1" columnClasses="top, top">
				<h:panelGrid columns= "2">
	    			<h:outputText value="Cantidad de pasadas" styleClass="outputcommonbold" />
	    			<h:inputText id = "cantidadPasadas" value="#{s.pasadas}"  />
	    			<h:commandButton action="#{abmtampingMOPasadasCtrl.eliminar(s)}" value ="Eliminar" reRender ="saveperfilform"/>
	    		</h:panelGrid>	
	        	<rich:pickList value="#{s.medidas}" listsHeight = "5" converter = "#{medidaadapter.converter}"
	        		copyTitle = "Agregar" copyAllControlLabel = "Agregar todos" removeAllTitle = "Sacar todos" removeControlLabel ="Sacar todos" > 
	           		<f:selectItems value="#{medidaadapter.items}"/>
	        	</rich:pickList>
	        </h:panelGrid>
	        </rich:column>
		</rich:dataTable>
			
		<h:panelGrid columns="2">
      		<h:commandButton action="opcional_configuracion_stampingMP.jsf" value ="Volver" styleClass="volverbutton" />
	   		<h:commandButton action="#{abmtampingMOPasadasCtrl.guardarOpcionales}" value ="Guardar" styleClass="guardarbutton"  reRender ="saveperfilform"/>
    	</h:panelGrid>
	</h:form>
	
	</div>
	</center>
	</ui:define>

 </ui:composition>

